package com.hh.releasenode.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hh.releasenode.dao.SysRoleDao;
import com.hh.releasenode.dao.SysUserDao;
import com.hh.releasenode.entity.SysRoleEntity;
import com.hh.releasenode.entity.SysUserEntity;
import com.hh.releasenode.exception.RNException;
import com.hh.releasenode.form.SysUserForm;
import com.hh.releasenode.service.SysRoleService;
import com.hh.releasenode.service.SysUserService;
import com.hh.releasenode.utils.EncryptionUtils;
import org.apache.commons.lang.RandomStringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName SysRoleServiceImpl
 * @Description 系统角色 service实现类
 * @Author KunxianLi
 * Date 2020/6/12 16:19
 * Version 1.0
 **/
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleDao, SysRoleEntity> implements SysRoleService {


    @Override
    public List<SysRoleEntity> findByUserId(Long sysUserId) {

        return this.baseMapper.findByUserId(sysUserId);
    }
}
